package org.md.budzik.problems;

import java.math.BigInteger;

/**
 * Obsługa dzielenia.
 * @author Wiezzel
 *
 */
public class Division extends TwoArgOp {

	public Division(Expression ex2, Expression ex1) {
		super(ex2, ex1);
	}

	public BigInteger computeOperation(BigInteger x, BigInteger y) throws ParseException {
//		if (!x.mod(y).equals(new BigInteger("0")))
//			throw new ParseException(x + " / " + y + " nie jest liczbą naturalną");
		return x.divide(y);
	}
	
	protected String operationSymbol() {
		return "/";
	}
	
}